<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dth">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>User list - PyHMon Web Interface</title>
</head>
<body>
    <h2>Users:</h2>
    <a href="${tg.url('/user_opts')}">Add user</a>
    <table border="1" width="100%">
    <tr><th>Username</th><th>Full name</th><th>Phone</th><th>E-mail</th>
    <th>Groups</th><th>Edit</th><th>Delete</th></tr>
    <tr py:for="u in allusers">
    <td><b><span py:replace="u.user_name">Username Here.</span></b></td>
    <td><b><span py:replace="u.display_name">Full name Here.</span></b></td>
    <td><b><span py:replace="u.phone_num">Phone Here.</span></b></td>
    <td><b><span py:replace="u.email_address">Email Here.</span></b></td>
    <td><b><span py:replace="len(u.groups)">Groups Here.</span></b></td>
    <td><form action="user_opts" method="post">
            <input type="hidden" name="userid" value="${u.user_id}"/>
            <input type="submit" name="submit" value="Go!"/>
    </form></td>
    <td><form action="del_user" method="post">
            <input type="hidden" name="userid" value="${u.user_id}"/>
            <input type="submit" name="submit" value="Go!"/>          
    </form></td>
    </tr></table>
</body>
</html>
